package com.kgc.airquality.controller;

import com.kgc.airquality.pojo.District;
import com.kgc.airquality.pojo.ResultEntity;
import com.kgc.airquality.service.DistrictService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class districtController {
    @Resource
    DistrictService districtServices;
    @RequestMapping("/getbyid")
    public ResultEntity<List<District>>  sele(
            ){
        List<District> districts = districtServices.seleAll();
        return  ResultEntity.successWithoutData(districts);
    }

}
